package com._520it.crm.domain;

import java.util.ArrayList;
import java.util.List;


public class Employee {
    /*为管理员*/
    public static final int ADMIN_NO = 1;
    /*不为管理员*/
    public static final int ADMIN_yes = 0;

    private Long id;

    private String sn;

    private String name;

    private String password;

    private String email;

    private Integer age;

    private int admin;

    private Department dept;

    private List<Role> roles = new ArrayList<>();

    public List<Role> getRoles() {
        return roles;
    }

    public void setRoles(List<Role> roles) {
        this.roles = roles;
    }

    public static int getAdminNo() {
        return ADMIN_NO;
    }

    public static int getADMIN_yes() {
        return ADMIN_yes;
    }

    public Long getId() {
        return id;
    }

    public String getSn() {
        return sn;
    }

    public String getName() {
        return name;
    }

    public String getPassword() {
        return password;
    }

    public String getEmail() {
        return email;
    }

    public Integer getAge() {
        return age;
    }

    public int getAdmin() {
        return admin;
    }

    public Department getDept() {
        return dept;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public void setSn(String sn) {
        this.sn = sn;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public void setAdmin(int admin) {
        this.admin = admin;
    }

    public void setDept(Department dept) {
        this.dept = dept;
    }
}